3.850 \(\int x \left (-a+b x^n\right )^p \left (a+b x^n\right )^p \, dx\)

Optimal. Leaf size=70 \[ \frac{1}{2} x^2 \left (b x^n-a\right )^p \left (a+b x^n\right )^p \left (1-\frac{b^2 x^{2 n}}{a^2}\right )^{-p} \, _2F_1\left (\frac{1}{n},-p;1+\frac{1}{n};\frac{b^2 x^{2 n}}{a^2}\right ) \]

[Out]

(x^2*(-a + b*x^n)^p*(a + b*x^n)^p*Hypergeometric2F1[n^(-1), -p, 1 + n^(-1), (b^2
*x^(2*n))/a^2])/(2*(1 - (b^2*x^(2*n))/a^2)^p)

_______________________________________________________________________________________

Rubi [A]  time = 0.0952596, antiderivative size = 70, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.136 \[ \frac{1}{2} x^2 \left (b x^n-a\right )^p \left (a+b x^n\right )^p \left (1-\frac{b^2 x^{2 n}}{a^2}\right )^{-p} \, _2F_1\left (\frac{1}{n},-p;1+\frac{1}{n};\frac{b^2 x^{2 n}}{a^2}\right ) \]

Antiderivative was successfully verified.

[In]  Int[x*(-a + b*x^n)^p*(a + b*x^n)^p,x]

[Out]

(x^2*(-a + b*x^n)^p*(a + b*x^n)^p*Hypergeometric2F1[n^(-1), -p, 1 + n^(-1), (b^2
*x^(2*n))/a^2])/(2*(1 - (b^2*x^(2*n))/a^2)^p)

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 18.2524, size = 56, normalized size = 0.8 \[ \frac{x^{2} \left (1 - \frac{b^{2} x^{2 n}}{a^{2}}\right )^{- p} \left (- a + b x^{n}\right )^{p} \left (a + b x^{n}\right )^{p}{{}_{2}F_{1}\left (\begin{matrix} - p, \frac{1}{n} \\ 1 + \frac{1}{n} \end{matrix}\middle |{\frac{b^{2} x^{2 n}}{a^{2}}} \right )}}{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate(x*(-a+b*x**n)**p*(a+b*x**n)**p,x)

[Out]

x**2*(1 - b**2*x**(2*n)/a**2)**(-p)*(-a + b*x**n)**p*(a + b*x**n)**p*hyper((-p,
1/n), (1 + 1/n,), b**2*x**(2*n)/a**2)/2

_______________________________________________________________________________________

Mathematica [A]  time = 0.0986373, size = 70, normalized size = 1. \[ \frac{1}{2} x^2 \left (b x^n-a\right )^p \left (a+b x^n\right )^p \left (1-\frac{b^2 x^{2 n}}{a^2}\right )^{-p} \, _2F_1\left (\frac{1}{n},-p;1+\frac{1}{n};\frac{b^2 x^{2 n}}{a^2}\right ) \]

Antiderivative was successfully verified.

[In]  Integrate[x*(-a + b*x^n)^p*(a + b*x^n)^p,x]

[Out]

(x^2*(-a + b*x^n)^p*(a + b*x^n)^p*Hypergeometric2F1[n^(-1), -p, 1 + n^(-1), (b^2
*x^(2*n))/a^2])/(2*(1 - (b^2*x^(2*n))/a^2)^p)

_______________________________________________________________________________________

Maple [F]  time = 0.22, size = 0, normalized size = 0. \[ \int x \left ( b{x}^{n}-a \right ) ^{p} \left ( a+b{x}^{n} \right ) ^{p}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int(x*(b*x^n-a)^p*(a+b*x^n)^p,x)

[Out]

int(x*(b*x^n-a)^p*(a+b*x^n)^p,x)

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \int{\left (b x^{n} + a\right )}^{p}{\left (b x^{n} - a\right )}^{p} x\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((b*x^n + a)^p*(b*x^n - a)^p*x,x, algorithm="maxima")

[Out]

integrate((b*x^n + a)^p*(b*x^n - a)^p*x, x)

_______________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \[{\rm integral}\left ({\left (b x^{n} + a\right )}^{p}{\left (b x^{n} - a\right )}^{p} x, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((b*x^n + a)^p*(b*x^n - a)^p*x,x, algorithm="fricas")

[Out]

integral((b*x^n + a)^p*(b*x^n - a)^p*x, x)

_______________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \[ \int x \left (- a + b x^{n}\right )^{p} \left (a + b x^{n}\right )^{p}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(x*(-a+b*x**n)**p*(a+b*x**n)**p,x)

[Out]

Integral(x*(-a + b*x**n)**p*(a + b*x**n)**p, x)

_______________________________________________________________________________________

GIAC/XCAS [F]  time = 0., size = 0, normalized size = 0. \[ \int{\left (b x^{n} + a\right )}^{p}{\left (b x^{n} - a\right )}^{p} x\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((b*x^n + a)^p*(b*x^n - a)^p*x,x, algorithm="giac")

[Out]

integrate((b*x^n + a)^p*(b*x^n - a)^p*x, x)